package com.ruoyi.project.tickets.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 核销表对象 t_serial
 *
 * @author 孙山伟
 * @date 2023-07-01
 */
public class Serial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 核销时间 */
    @Excel(name = "核销时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date offTime;

    /** 核销人员id */
    @Excel(name = "核销人员id")
    private Long offUserId;

    private String code;

    private String offUserName;

    /** 0 是 ，1 否  */
    @Excel(name = "0 是 ，1 否 ")
    private String isOff;

    /** 票券规则id */
    @Excel(name = "票券规则id")
    private Long ruleId;

    /** 售卖id */
    @Excel(name = "售卖id")
    private Long saleId;

    /** 打印的序列号 */
    @Excel(name = "打印的序列号")
    private String serialNumber;

    private Long  shopId;

    /** 主键 */
    private Long id;

    public void setOffTime(Date offTime)
    {
        this.offTime = offTime;
    }

    public Date getOffTime()
    {
        return offTime;
    }
    public void setOffUserId(Long offUserId)
    {
        this.offUserId = offUserId;
    }

    public Long getOffUserId()
    {
        return offUserId;
    }
    public void setIsOff(String isOff)
    {
        this.isOff = isOff;
    }

    public String getIsOff()
    {
        return isOff;
    }
    public void setRuleId(Long ruleId)
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId()
    {
        return ruleId;
    }
    public void setSaleId(Long saleId)
    {
        this.saleId = saleId;
    }

    public Long getSaleId()
    {
        return saleId;
    }
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber()
    {
        return serialNumber;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("offTime", getOffTime())
            .append("offUserId", getOffUserId())
            .append("isOff", getIsOff())
            .append("ruleId", getRuleId())
            .append("saleId", getSaleId())
            .append("serialNumber", getSerialNumber())
            .append("id", getId())
            .toString();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getOffUserName() {
        return offUserName;
    }

    public void setOffUserName(String offUserName) {
        this.offUserName = offUserName;
    }
}
